package File;

import java.io.File;

public class Dome5 {
    public static void main(String[] args) {
        File f1 = new File("./test.txt");
        File f2 = new File("./testDir/test.txt");
        //移动文件
        f1.renameTo(f2);
    }
}
